<?php
namespace Littlexiaoshuishui\Upay\Abstracts;


Interface GatewayInterface
{
    /**
     * To pay.
     * @param array $data
     * @param string  $type
     */
    public function pay(array $data, $type);

    /**
     * Query an order.
     * @param string|array $order
     */
    public function find(array $order, $type);

    /**
     * Refund an order.
     */
    public function refund(array $order);

    /**
     * withdraw an order.
     * @param string|array $order
     */
    public function withdraw(array $data, $type);


    public function verify(array $data);

}